//
//  ShiKeCell.m
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/17.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ShiKeCell.h"

@implementation ShiKeCell
- (void)dealloc
{
    [_wenzi release];
    [_tupian release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        /**<  文字 */
        self.tupian = [[UIImageView alloc]init];
        [self.contentView addSubview:_tupian];
        [_tupian release];
        /**<  图片 */
        self.wenzi = [[UILabel alloc]init];
        [self.contentView addSubview:_wenzi];
        _wenzi.textColor = [UIColor whiteColor];
        _wenzi.numberOfLines =3;/**<  行数等于 */
        _wenzi.font= [UIFont systemFontOfSize:13];/**<  字体大小 */
           _wenzi.textAlignment = NSTextAlignmentCenter;/**<  字体居中 */
        [_wenzi release];
        
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    
    
    
    
    _wenzi.frame = CGRectMake(40 * KUAN, 50 * GAO, 280 * KUAN, 100 * GAO);
 
    
    _tupian.frame = CGRectMake(0, 0, 375 * KUAN, 200 * GAO);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
